package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.AdvertisingEncyclopediaType;
import com.jeff.tianti.cms.dao.AdvertisingEncyclopediaTypeDao;
import com.jeff.tianti.cms.dto.AdvertisingEncyclopediaTypeQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author xujianfang
 * @desc AdvertisingEncyclopediaTypeService类 
 * @date 2019-07-22
 */
@Service
public class AdvertisingEncyclopediaTypeService extends CommonService< AdvertisingEncyclopediaType,String >  {

    @Autowired
    private AdvertisingEncyclopediaTypeDao advertisingEncyclopediaTypeDao;

    @Autowired
    public void setAdvertisingEncyclopediaTypeDao(AdvertisingEncyclopediaTypeDao advertisingEncyclopediaTypeDao){
      super.setCommonDao(advertisingEncyclopediaTypeDao);
    }

    public PageModel<AdvertisingEncyclopediaType> queryAdvertisingEncyclopediaTypePage(AdvertisingEncyclopediaTypeQueryDTO advertisingEncyclopediaTypeQueryDTO){
           return this.advertisingEncyclopediaTypeDao.queryAdvertisingEncyclopediaTypePage(advertisingEncyclopediaTypeQueryDTO);
    }

    public List<AdvertisingEncyclopediaType> queryAdvertisingEncyclopediaTypeList(AdvertisingEncyclopediaTypeQueryDTO advertisingEncyclopediaTypeQueryDTO){
           return this.advertisingEncyclopediaTypeDao.queryAdvertisingEncyclopediaTypeList(advertisingEncyclopediaTypeQueryDTO);
    }


}